package com.anne.fish.service.img;

import java.io.File;

public interface ImageUploadManager {

	/**
	 * only 
	 * @param file 要上传的文件
	 * @prama destFileName 保存的文件名 
	 * @return 本来 返回相对应用的相对路径 例如本地   /appContext/image/xxx.xxx
	 * 远程返回url  http://image.abc.com/image/xxx.xxx
	 */
	//public String upload(File file,String destFileName ) throws Exception;
	public String upload(File file, String destFileName,String uploadDir)throws Exception;
	public String upload(byte[] file,String destFileName ,String uploadDir ) throws Exception;
	
	public void setImageParameter(ImageParameter ImageParameter);
	
	public ImageParameter getImageParameter();
	
	public boolean isRemote();
}
